package com.way.demo.copybean;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @author lipingwei
 * @create 2021-07-21 15:28
 */
@Accessors(chain = true)
@Getter
@Setter
@ToString
public class Teacher implements Cloneable{
    private int tId;
    private Hobby hobby;

    @Override
    protected Object clone() {
        Object obj=null;
        try {
            obj=super.clone();
            return obj;
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return obj;
    }
}
